package cn.com.mapper;

import cn.com.beans.BatchLine;

public interface BatchLineMapper {
    /**
     * delete by primary key
     * @param baId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer baId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(BatchLine record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(BatchLine record);

    /**
     * select by primary key
     * @param baId primary key
     * @return object by primary key
     */
    BatchLine selectByPrimaryKey(Integer baId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(BatchLine record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(BatchLine record);

    /**
     * 根据搜索条得到批次线
     * @param batchLine
     * @return
     */
    BatchLine findBatch(BatchLine batchLine);
}